package org.jeecg.modules.classroom.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: fac_classroom
 * @author: baochangrong
 * @Date:   2022-02-10
 * @Version: V1.0
 */
@Data
@TableName("fac_classroom")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="fac_classroom对象", description="fac_classroom")
public class FacClassroomVo implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键id")
    private String id;
	/**教室编号*/
	@Excel(name = "教室编号", width = 15)
    @ApiModelProperty(value = "教室编号")
    private String classroomCode;
	/**教室名称*/
	@Excel(name = "教室名称", width = 15)
    @ApiModelProperty(value = "教室名称")
    private String classroomName;
	/**教室别名*/
	@Excel(name = "教室别名", width = 15)
    @ApiModelProperty(value = "教室别名")
    private String classroomNickname;
	/**用途*/
	@Excel(name = "用途", width = 15)
    @ApiModelProperty(value = "用途")
    private String classroomUsage;
	/**容纳学生数量*/
	@Excel(name = "容纳学生数量", width = 15)
    @ApiModelProperty(value = "容纳学生数量")
    private Integer classroomStudentCapacity;
	/**容纳班级数量*/
	@Excel(name = "容纳班级数量", width = 15)
    @ApiModelProperty(value = "容纳班级数量")
    private Integer classroomClassesCapacity;
	/**描述*/
	@Excel(name = "描述", width = 15)
    @ApiModelProperty(value = "描述")
    private String classroomIntroduce;
	/**教室面积*/
	@Excel(name = "教室面积", width = 15)
    @ApiModelProperty(value = "教室面积")
    private BigDecimal classroomArea;
	/**教室类型*/
	@Excel(name = "教室类型", width = 15)
    @ApiModelProperty(value = "教室类型")
    @Dict(dicCode = "classroom_type")
    private Integer classroomType;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String classroomRemark;
	/**是否可用*/
	@Excel(name = "是否可用", width = 15)
    @ApiModelProperty(value = "是否可用")
    @Dict(dicCode = "is_open_type")
    private Integer classroomIzOpen=1;
	/**教室结构*/
	@Excel(name = "教室结构", width = 15)
    @ApiModelProperty(value = "教室结构")
    private String classroomStructure;
	/**学校编码（租户ID）*/
	@Excel(name = "学校编码（租户ID）", width = 15)
    @ApiModelProperty(value = "学校编码（租户ID）")
    private String tenantId;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**排序*/
	@Excel(name = "排序", width = 15)
    @ApiModelProperty(value = "排序")
    private Integer classroomOrder;
    /** 所属建筑ID*/
    private String buildingId;

    private String buildingName;
}
